//
//  BHStadiumDetailPlayModel.swift
//  BigHealth
//
//  Created by 布丁 on 2021/8/3.
//

import UIKit

class BHStadiumDetailPlayModel: NSObject {
    var playId: String = ""
    var name: String = ""
    var price: String = ""
    var startTime: String = ""
    var typeOneLabel: String = ""
    var typeTwoLabel: String = ""

    
    func parseDic(_ dic: [String: Any])  {
        self.playId = BHJsonTool.decodeStringFromDic(dic: dic, key: "id")
        self.name = BHJsonTool.decodeStringFromDic(dic: dic, key: "name")
        self.price = BHJsonTool.decodeStringFromDic(dic: dic, key: "price")
        self.startTime = BHJsonTool.decodeStringFromDic(dic: dic, key: "startTime")
        self.typeOneLabel = BHJsonTool.decodeStringFromDic(dic: dic, key: "typeOneLabel")
        self.typeTwoLabel = BHJsonTool.decodeStringFromDic(dic: dic, key: "typeTwoLabel")
        
        if self.price.isEmpty == true {
            self.price = "0"
        }
    }
}
